
import request from '@/utils/request';

// 我的薪资-薪资基础信息
export async function queryMySalaryBaseInfo(employeeCode, organizationCode) {
    return request(`/api/finance/salary/v1/salaryBase/employeeInfo/${organizationCode}/${employeeCode}`);
}
// 我的薪资-薪资记录
export async function querySalaryHistory(employeeCode, year) {
    return request(`/api/finance/salary/v1/salaryBase/salary/history/${employeeCode}/${year}`);
}
// 我的薪资-绩效记录
export async function queryKpiHistory(employeeCode, year) {
    return request(`/api/finance/salary/v1/salaryBase/kpi/history/${employeeCode}/${year}`);
}
// 我的薪资-获取最新薪资年月
export async function querySalaryBaseYearMonth(employeeCode) {
    return request(`/api/finance/salary/v1/salaryBase/yearMonth/${employeeCode}`);
}
// 我的薪资-考勤记录
export async function queryAttendHistory(employeeCode, year, month) {
    return request(`/api/finance/salary/v1/salaryBase/attend/history/${employeeCode}/${year}/${month}`);
}
// 我的薪资-专项扣款扣除
export async function queryTaxHistory(employeeCode, year) {
    return request(`/api/finance/salary/v1/salaryBase/social/history/${employeeCode}/${year}`);
}
